{% extends "base.html" %}

{% block title %}
Jiaion Login
{% endblock %}

{% block head %}
<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/Login.css">
{% endblock %}

{% block navbar %}
  <div class="left" >
    <a title="" href="#">欢迎使用</a>
  </div>
{% endblock %}

{% block body %}
     <div id="login">
   	 	<form method="post" action="" >
           {% if error %}
              <p style="color: red;">{{ error }}</p>
           {% endif %}
        	<p> 
        	<label>用户名<br />
        	<input type="text" tabindex="10" size="20" value="" class="input" id="user_login" name="log" /></label>
        	</p>
        	<p>
        	<label>密码<br />
        	<input type="password" tabindex="20" size="20" value="" class="input" id="user_pass" name="pwd" /></label>
        	</p>
        	<p class="submit">
        	<input type="submit" tabindex="100" value="登录" class="button-primary" id="wp-submit" name="wp-submit" />
        	<input type="button" tabindex="100" value="注册" class="button-primary" id="wp-submit" name="wp-submit" onclick="Reg();" />
        	</p>
      	</form>
     </div>
    <script>
    function Reg()
    {
        window.location.href="/userreg/";
    }
    </script>
{% endblock %}
